/*********************************************************
          File Name:sock.h
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Mon 15 Jun 2015 12:38:40 PM CST
**********************************************************/

#ifndef SOCK_H_
#define SOCK_H_

#include <sys/socket.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netdb.h>
#include <unistd.h>
#include <string.h>
#include <sys/un.h>

#define     CLIENT          0
#define     SERVER          1

int mysocket(int op, const char *, const char *, int, socklen_t *);

int nonblock_socket(int);

int unix_socket(const char *, int);

int unix_connect(const char *);

#endif
